﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Objects;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using YuShiManageSystem.DATA;

namespace YuShiManageSystem.UI.Manager
{
    /// <summary>
    /// 门店的管理窗体
    /// </summary>
    public partial class StoreItem : YuShiManageSystem.UI.Base
    {
        //private static ObjectQuery<tb_store> stores;

        public StoreItem()
        {
            InitializeComponent();
        }

        public StoreItem(Session session)
            :base(session)
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ////tb_store s = new tb_store();
            //s.storeNo = this.txtNo.Text.Trim();
            //s.sName = this.txtName.Text.Trim();
            //s.sPone = this.txtPone.Text.Trim();
            //s.sAddress = this.txtAddress.Text.Trim();
            //s.remark = this.txtRemark.Text.Trim();
            //model.AddStore(s);
            //this.dgvStore.DataSource = model.getAllStore();
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {

        }

        private void btnDel_Click(object sender, EventArgs e)
        {
            //this.dgvStore.Rows.Remove(this.dgvStore.SelectedRows[0]);
            //model.SaveChanges();

        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
